<br /><br />
<p style="font-size:48px;text-align:center;width:100%;">访问链接临时关闭,考试暂未开始,感谢</p>
<?php
exit;
session_start();
$url='.';
$url='https://tu-10030004.file.myqcloud.com/szds';
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>上海</title>
<style>
html,body{font-size:16px;background:#fbe899;width:100%;font-size:12px;color:#000000;font-family:Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body, div{position:relative;padding:0px;margin:0px auto;max-width:750px;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
.js_dialog{display:none;}
.weui-toast {position: fixed;z-index: 5000;width: 7.6em;min-height: 7.6em;top: 180px;left: 50%;margin-left: -3.8em;background: rgba(17, 17, 17, 0.7);text-align: center;border-radius: 5px;color: #FFFFFF;}
.weui-toast__content {
    margin: 0 0 15px;
}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:8px;font-size:12px;z-index:2;border:none;background:transparent;}
.txt::-webkit-input-placeholder {color:#a0a09b;text-align:left;}
input {
    outline:none;
    border:none;
    outline-color: "red";
}
select{position:absolute;display:block;background:transparent;border:0px;text-indent:8px;font-size:12px;-webkit-appearance:none;}
input:-internal-autofill-selected, .txt:-internal-autofill-selected{background:transparent;}
.container{position:relative;width:100%;height:auto;overflow-x:hidden;}
.p1{opacity:0;background:transparent url('<?php echo $url; ?>/img/index-bg.jpg?v=2') no-repeat;background-size:cover;}
.p2{background:transparent url('<?php echo $url; ?>/img/tmtip.jpg') no-repeat;background-size:cover;}
.p3{background:transparent url('<?php echo $url; ?>/img/tmtip.jpg') no-repeat;background-size:cover;}
.tkong-t2{position:absolute;background:transparent url('<?php echo $url; ?>/img/tkong-t2.png') no-repeat;background-size:cover;}
.tktip{background:transparent url('<?php echo $url; ?>/img/tmtip.jpg') no-repeat;background-size:cover;}
.tkong{background:transparent url('<?php echo $url; ?>/img/tmtip.jpg') no-repeat;background-size:cover;}
.p2-txt{position:absolute;font-size:13px;text-align:center;color:#000;}
.fade-in{opacity:1;-webkit-transition:opacity 1s ease-in-out;-moz-transition: opacity 1s ease-in-out;-o-transition: opacity 1s ease-in-out;transition: opacity 1s ease-in-out;}
.p-bg{top:0px;left:0px;}
.l100{position:absolute;width:100%;left:0;display:block;}
.end-pop-t1{top:35%;background:transparent url('<?php echo $url; ?>/img/end.png') no-repeat;background-size:cover;}
.end-pop-t1 img{width:100%;display:block;}
.end-pop-close{position:absolute;width:60%;height:35%;left:20%;top:56%;}
.p-b, .thebg{position:absolute;width:100%;top:0;left:0;} 
.t-bg{position:absolute;display:none;width:100%;height:100%;top:0;left:0;background-color:#000;opacity:.8;z-index:9;}
.page{position:absolute;display:none;width:100%;height:100%;top:0;left:0;}
.p-top{top:0;z-index:2;}
.p-botm{bottom:0;z-index:2;}
.ti-title{position:absolute;font-size:16px;width:100%;text-align:center;font-weight:700;}
.tk-bt, .dx-bt, .duox-bt, .pduan-bt{position:absolute;width:80%;left:10%;font-size:13px;line-height:24px;}
.ti-timedt{font-size:22px;}
.ti-timedj{font-size:24px;}
.ti-timedt, .ti-timedj{position:absolute;color:#df0c12;font-weight:700;}
.dx-abcd, .duox-abcd, .pduan-abcd{position:absolute;width:80%;left:10%;}
.dx-li{position:relative;width:100%;font-size:12px;vertical-align:middle;}
.dx-li-ico{position:absolute;}
.pduan-li{position:absolute;top:0;}
.pduan-a{left:0;}
.pduan-b{left:45%;}
.hide{display:none;}
.end-pop{position:absolute;z-index:9;display:none;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);;top:0px;left:0px;}
@media only screen and (max-width: 480px) {
    .ti-title{font-size:16px;}
}
.tktxt{text-align:center;background:transparent;font-size:12px;color:red;
    width: 38px;
    margin: 9px 2px;
    height: 38px;
    line-height: 38px;
    border: 1px solid #ecca0f;
    border-radius: 5px;
}
@media only screen and (min-width: 740px) {
    .txt, .p2-txt{font-size:16px;font-weight:600;}
    .ti-title{font-size:40px;}
    .tk-bt, .dx-bt, .duox-bt, .pduan-bt{width:76%;left:12%;font-size:18px;line-height:38px;}
    .tktxt{font-size:18px;width: 40px;margin: 10px 5px;height: 40px;line-height: 40px;border: 1px solid #ecca0f;border-radius: 5px;}
    .ti-timedt{font-size:40px;}
    .ti-timedj{font-size:42px;}
}
.p3-li{position:absolute;overflow-y:scroll;}
.p3-li img{width:100%;display:block;}
.p3-li::-webkit-scrollbar {width: 4px;}
.p3-li::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background   : #8b8385;
}
.p3-li::-webkit-scrollbar-track {
border-radius: 4px;
background   : #ededed;
}
.p1-jr{z-index:6;}
</style><script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?44b765fb3fae570023be4ed95e891158";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script></head>
<body>
<div class="container">
  <div class="p1 page">
      <img class="l100 p-top" src="<?php echo $url; ?>/img/index-b1.png" />
      <img class="l100 p-botm" src="<?php echo $url; ?>/img/index-b2.png" />
      <div class="thebg">
        <img class="p-b" src="<?php echo $url; ?>/img/index.png?v=2" />
        <input id="p1-name" class="txt" name="p1-name" type="text" value="" placeholder="请填写学生姓名" />
        <input id="p1-idcard" autocomplete="off" class="txt" name="p1-idcard" type="text" value="" placeholder="请填写身份证号或有效证件" />
        <div class="p1-jr simg"></div>
     </div>
  </div>
  
  <div class="p2 page">
     <div class="thebg">
      <img class="p-b" src="<?php echo $url; ?>/img/xin.png" />
      <div class="p2-qu p2-txt"></div>
      <div class="p2-school p2-txt"></div>
      <div class="p2-nianji p2-txt"></div>
      <div class="p2-name p2-txt"></div>
      <div class="p2-id p2-txt"></div>
      <div class="p2-phone p2-txt"></div>
      <div class="p2-jr simg"></div>
     </div>
  </div>
  <div class="p3 page">
     <div class="thebg">
         <img class="p-b" src="<?php echo $url; ?>/img/zhi.png" />
         <div class="p3-li">
            <img src="<?php echo $url; ?>/img/p3-t2.png" />
         </div>
         <img class="l100 p-top" src="<?php echo $url; ?>/img/p3-niao.png" />
         <div class="p3-jr simg"></div>
     </div>
  </div>
  
  <div class="tktip page">
    <div class="thebg">
     <img class="p-b" src="<?php echo $url; ?>/img/tmtip.png" />
     <img class="l100 p-top" src="<?php echo $url; ?>/img/tktip-t1.png" />
     <div class="tmtip-b1 simg go-tkong"></div>
    </div> 
  </div>
  
  <div class="dxtip page">
    <div class="thebg">
     <img class="p-b" src="<?php echo $url; ?>/img/tmtip.png" />
     <img class="l100 p-top" src="<?php echo $url; ?>/img/dxtip-t1.png" />
     <div class="tmtip-b1 simg go-danxuan"></div>
    </div> 
  </div>
  <div class="pduantip page">
    <div class="thebg">
     <img class="p-b" src="<?php echo $url; ?>/img/tmtip.png" />
     <img class="l100 p-top" src="<?php echo $url; ?>/img/pduantip-t1.png" />
     <div class="tmtip-b1 simg go-pduan"></div>
    </div> 
  </div>
  <div class="duotip page">
    <div class="thebg">
     <img class="p-b" src="<?php echo $url; ?>/img/tmtip.png" />
     <img class="l100 p-top" src="<?php echo $url; ?>/img/duotip-t1.png" />
     <div class="tmtip-b1 simg go-duo"></div>
    </div> 
  </div>
  
  <div class="panduan page">
    <div class="thebg">
      <img class="p-b" src="<?php echo $url; ?>/img/tkong.png" />
      <img class="tkong-t1 simg" src="<?php echo $url; ?>/img/tkong-t1.png" />
      <div class="tkong-t2"></div>
      <img class="l100 p-top" src="<?php echo $url; ?>/img/tkong-niao.png" />
      <div class="ti-timedt">01:27</div>
      <div class="ti-timedj">15s</div>
      <div class="ti-title">第一题 （1/20）</div>
      <div class="pduan-bt pduan-t1 hide">
      1.孟子被称为“亚圣”，他与孔子、荀
子都是先秦儒家的代表人物。(  )
      </div>
     <?php for ($i=2;$i<21;$i++){ ?>
      <div class="pduan-bt pduan-t<?php echo $i ?> hide">
          <?php echo $i ?>.孟子被称为“亚圣”，他与孔子、荀
    子都是先秦儒家的代表人物。(  )
      </div>
      <?php } ?>
      
      <div class="pduan-abcd">
        <div class="pduan-li pduan-a" data-id="y"><img class="dx-li-ico pduan-li-a" src="<?php echo $url; ?>/img/a.png" /> <span>正确</span></div>
        <div class="pduan-li pduan-b" data-id="n"><img class="dx-li-ico pduan-li-b" src="<?php echo $url; ?>/img/b.png" /> <span>错误</span></div>
      </div>
      
      <div class="pduan-next simg"></div>

    </div>
  </div>
  
  <div class="duoxt page">
     <div class="thebg">
      <img class="p-b" src="<?php echo $url; ?>/img/tkong.png" />
      <img class="tkong-t1 simg" src="<?php echo $url; ?>/img/tkong-t1.png" />
      <div class="tkong-t2"></div>
      <img class="l100 p-top" src="<?php echo $url; ?>/img/tkong-niao.png" />
      <div class="ti-timedt">01:27</div>
      <div class="ti-timedj">20s</div>
      <div class="ti-title">第一题 （1/20）</div>
      <!--  题目内容  -->
      <div class="duox-bt duox-t1 hide">
      1.1978年12月18日至22日，_____在
            北京召开。会议认为，应当结束揭批林彪、“四人帮”的群众运动，及时地、果断地
            把党和国家的工作着重点转移到社会主义现代化建设上来。
      </div>
      <div class="duox-abcd duox-t1 hide">
        <div class="dx-li" data-id="a"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/a.png" /> <span>党的十一届三中全会</span></div>
        <div class="dx-li" data-id="b"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/b.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="c"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/c.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="d"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/d.png" /> <span>党的十一届五中全会</span></div>
      </div>
      <?php for ($i=2;$i<21;$i++){ ?>
      <div class="duox-bt duox-t<?php echo $i; ?> hide">
      <?php echo $i; ?>.1978年12月18日至22日，_____在
            北京召开。会议认为，应当结束揭批林彪、“四人帮”的群众运动，及时地、果断地
            把党和国家的工作着重点转移到社会主义现代化建设上来。
      </div>
      <div class="duox-abcd duox-t<?php echo $i; ?> hide">
        <div class="dx-li" data-id="a"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/a.png" /> <span>党的十一届三中全会</span></div>
        <div class="dx-li" data-id="b"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/b.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="c"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/c.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="d"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/d.png" /> <span>党的十一届五中全会</span></div>
      </div>
      <?php } ?>
      
      <div class="duo-next simg"></div>
    </div>
  </div> <!-- 多选题结束  -->
  
  <div class="danxt page">
     <div class="thebg">
      <img class="p-b" src="<?php echo $url; ?>/img/tkong.png" />
      <img class="tkong-t1 simg" src="<?php echo $url; ?>/img/tkong-t1.png" />
      <div class="tkong-t2"></div>
      <img class="l100 p-top" src="<?php echo $url; ?>/img/tkong-niao.png" />
      <div class="ti-timedt">01:27</div>
      <div class="ti-timedj">15s</div>
      <div class="ti-title">第一题 （1/40）</div>
      <!--  题目内容  -->
      <div class="dx-bt dx-t1 hide">
      1.1978年12月18日至22日，_____在
            北京召开。会议认为，应当结束揭批林彪、“四人帮”的群众运动，及时地、果断地
            把党和国家的工作着重点转移到社会主义现代化建设上来。
      </div>
      <div class="dx-abcd dx-t1 hide">
        <div class="dx-li" data-id="a"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/a.png" /> <span>党的十一届三中全会</span></div>
        <div class="dx-li" data-id="b"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/b.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="c"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/c.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="d"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/d.png" /> <span>党的十一届五中全会</span></div>
      </div>
      <?php for ($i=2;$i<41;$i++){ ?>
      <div class="dx-bt dx-t<?php echo $i; ?> hide">
      <?php echo $i; ?>.1978年12月18日至22日，_____在
            北京召开。会议认为，应当结束揭批林彪、“四人帮”的群众运动，及时地、果断地
            把党和国家的工作着重点转移到社会主义现代化建设上来。
      </div>
      <div class="dx-abcd dx-t<?php echo $i; ?> hide">
        <div class="dx-li" data-id="a"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/a.png" /> <span>党的十一届三中全会</span></div>
        <div class="dx-li" data-id="b"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/b.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="c"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/c.png" /> <span>党的十一届五中全会</span></div>
        <div class="dx-li" data-id="d"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/d.png" /> <span>党的十一届五中全会</span></div>
      </div>
      <?php } ?>
      <div class="dx-next simg"></div>
    </div>
  </div> <!-- 单选题结束  -->
  
  <div class="tkong page">
    <div class="thebg">
      <img class="p-b" src="<?php echo $url; ?>/img/tkong.png" />
      <img class="tkong-t1 simg" src="<?php echo $url; ?>/img/tkong-t1.png" />
      <div class="tkong-t2"></div>
      <img class="l100 p-top" src="<?php echo $url; ?>/img/tkong-niao.png" />
      <div class="ti-timedt">01:27</div>
      <div class="ti-timedj">25s</div>
      <div class="ti-title">第一题 （1/20）</div>
      <!--  题目内容  -->
      <div class="tk-bt tk-t1 hide" data-n="3">
      2020年10月17日，《中华人民共和国 
      <input class="tktxt tk-txt1" name="tk-1" maxlength="1" type="text" value="" />
      <input class="tktxt tk-txt2" name="tk-2" maxlength="1" type="text" value="" />
      <input class="tktxt tk-txt3" name="tk-3" maxlength="1" type="text" value="" />
       保护法》（修订案）经十三届全国人大常委会第二十二次会议表
            决通过，自2021年6月1日起施行。该法
            在校园安全、学生欺凌、网络沉迷等诸多
            方面，体现着对特定人群的保护和关爱。
      </div>
      <div class="tk-bt tk-t2 hide" data-n="2">
               开始内容2<input class="tktxt tk-txt1" name="tk-1" maxlength="1" type="text" value="" />
               <input class="tktxt tk-txt2" name="tk-2" maxlength="1" type="text" value="" />
       xxxxx内容 ,自2021年6月1日起施行。该法
            在校园安全、学生欺凌、网络沉迷等诸多
            方面，体现着对特定人群的保护和关爱。  
      </div>
      <?php for ($i=3;$i<21;$i++){ ?>
      <div class="tk-bt tk-t<?php echo $i; ?> hide" data-n="3">
               开始内容<?php echo $i; ?>
               <input class="tktxt tk-txt1" name="tk-1" maxlength="1" type="text" value="" />
               <input class="tktxt tk-txt2" name="tk-2" maxlength="1" type="text" value="" />
               <input class="tktxt tk-txt3" name="tk-3" maxlength="1" type="text" value="" />
       xxxxx内容 ,自2021年6月1日起施行。该法
            在校园安全、学生欺凌、网络沉迷等诸多
            方面，体现着对特定人群的保护和关爱。  
      </div>
      <?php } ?>
      <!-- 题目内容  end  -->
      <div class="tkong-next simg"></div>
    </div>
  </div>

  <div class="end-pop">
      <div class="end-pop-t1 l100">
       <img src="<?php echo $url; ?>/img/end.png" />
         <div class="end-pop-close"></div>
      </div>
  </div>
  
  <div class="js_dialog">
       <div class="weui-mask"></div>
       <div class="weui-dialog">
                <div class="weui-dialog__bd weui-msg"></div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary weui-btn">知道了</a>
                </div>
        </div>
  </div>
  
</div>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.0.0/jquery.min.js"></script>
<script>
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate*1246){
	h=_rate*1246;
}
function setKe(cname, cvalue){
	var cname='s1'+cname;
    var d = new Date();
    d.setTime(d.getTime() + (24*60*60*1000));
    var expires = "expires="+ d.toUTCString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getke(cname) {
	var cname='s1'+cname;
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for(var i = 0; i <ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
         }
         if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
         }
     }
    return "";
}
var endDate = new Date();
var min=endDate.getMinutes();
endDate.setMinutes(min+30);
//endDate.setHours(11)
//endDate.setMinutes(45);
//endDate.setSeconds(1);
//end = endDate.getTime();
end = endDate.getTime();
function chinanum(num){
    var china = new Array('零','一','二','三','四','五','六','七','八','九');  
    var arr = new Array();
    var num=num+'';
    var english = num.split("")  
    for(var i=0;i<english.length;i++){
        arr[i] = china[english[i]];
    }
    if(2 == english.length){
        if('一' == arr[0]){
        	return ('十'+arr[1]);
        }else{
        	return (arr[0]+'十'+arr[1]);
        }
    }else{
    	return arr.join("")  
    }
}
Array.prototype.shuffle = function(){
	  let array = this;
	  let len = array.length;
	  for (let i = len - 1; i > 0; i--) {
	    let j = Math.floor(Math.random() * (i + 1));
	    [array[i], array[j]] = [array[j], array[i]];
	  }
}

$(function(){
	$(".p1").show().addClass("fade-in");
	$('.container, .page').width(sWidth).height(h);
	$('.p-b').height(_rate*1206);
	$('#p1-name').width(_rate*400).height(_rate*60).css({"top":_rate*772, "left":_rate*172});
	$('#p1-idcard').width(_rate*400).height(_rate*60).css({"top":_rate*916, "left":_rate*172});
	$('.p1-jr').width(_rate*248).height(_rate*82).css({"top":_rate*1010, "left":_rate*250});
	$('.p2-txt').width(_rate*396).height(_rate*70).css({"left":_rate*248, "line-height":_rate*70+'px'});
	$('.p2-qu').css({"top":_rate*402});
	$('.p2-school').css({"top":_rate*506});
	$('.p2-nianji').css({"top":_rate*610});
	$('.p2-name').css({"top":_rate*704});
	$('.p2-id').css({"top":_rate*798});
	$('.p2-phone').css({"top":_rate*898});
	$('.p2-jr').width(_rate*248).height(_rate*82).css({"top":_rate*1040, "left":_rate*250});
	$('.p3-li').width(_rate*646).height(_rate*880).css({"top":_rate*140, "left":_rate*48});
	$('.p3-jr').width(_rate*248).height(_rate*82).css({"top":_rate*1040, "left":_rate*250});
	$('.tmtip-b1').width(_rate*248).height(_rate*112).css({"top":_rate*1020, "left":_rate*250});
	$('.ti-title').css({"top":_rate*290});
	$('.tk-bt').css({"top":_rate*460});
	$(".tk-1").width(_rate*60);
	$('.ti-timedt').height(_rate*110).css({"top":_rate*20, "left":_rate*132,'line-height':_rate*110+'px'});
	$('.ti-timedj').height(_rate*110).css({"top":_rate*64, "left":_rate*400,'line-height':_rate*110+'px'});
	$('.tkong-t1, .tkong-t2').width(_rate*535).height(_rate*30).css({"top":_rate*152, "left":_rate*94});
	$('.tkong-t2').width(_rate*90);
	$('.tkong-next, .dx-next, .duo-next, .pduan-next').width(_rate*248).height(_rate*82).css({"top":_rate*960, "left":_rate*250});
	$('.dx-bt, .duox-bt, .pduan-bt').css({"top":_rate*400});
	$('.dx-abcd, .duox-abcd, .pduan-abcd').height(_rate*90).css({"top":_rate*580});
	$('.dx-li, .pduan-li').height(_rate*80).css({"line-height":_rate*80+'px'});
	$('.dx-li-ico').width(_rate*53).height(_rate*48).css({"top":_rate*16, "left":_rate*0});
	$('.dx-li span, .pduan-li span').css({"margin-left":_rate*66});
	if(h > _rate*1206){
		   var _cha= h - _rate*1246;
		   if(_cha > 0){
		      $('.thebg').css({"top":_cha/3});
		   }
	}
	var _szuid=getke('sz_v1uid');
	var _szvtd=getke('sz_v1td');
	var _ershiShuffleCookie=getke('sz_ershiShuffle');
	var _sisShuffleCookie=getke('sz_sisShuffle');
	var _userCurStepCookie=getke('sz_userCurStep');
	_ershiShuffleCookie='';
 

	$('.p1-jr').click(function(){
       var _name=$("#p1-name").val();
       var _idcard=$("#p1-idcard").val();
       if('' == _name){
    	   _popMsg("请输入学生姓名");
           return;  
       }
       if('' == _idcard){
    	   _popMsg("请输入身份证");
           return;  
       }
       $.post("./api/?c=getu", {n:_name,idc:_idcard}, function(data){
           if('n' == data.s){
        	   _popMsg("未查询到您的身份信息");
               return; 
           }
           if('y' == data.s || 'l' == data.s){
        	   $(".p1").hide();
               $(".p3").fadeIn(800);
               
               $('.p2-qu').html(data.u.qu);
           	   $('.p2-school').html(data.u.school);
           	   $('.p2-nianji').html(data.u.nianji);
           	   $('.p2-name').html(data.u.name);
           	   $('.p2-id').html(data.u.idcard);
           	   $('.p2-phone').html(data.u.phone);
                 console.log(data)
    			 console.log(data.s)
    			 _szuid=data.u.id;
	             _szvtd=data.u.vt;
                 $.post("./api/?c=dolock", {vtd:_szvtd,uid:_szuid}, function(data){
                 }, "json");
           }
	   }, "json");
	});


	


	$('.p2-jr').click(function(){
		_popMsg("考试暂未开始");
        return;
        $(".p2").hide();
        $(".tktip").fadeIn(600);

	});
	$('.p3-jr').click(function(){
		$(".p3").hide();
		$(".p2").fadeIn(800);
	});

	
	

	
    if(!('placeholder' in document.createElement('input')) ){   
	    $('input[placeholder],textarea[placeholder]').each(function(){var that = $(this),text= that.attr('placeholder');   
	      if(that.val()===""){that.val(text).addClass('placeholder');}   
	      that.focus(function(){if(that.val()===text){that.val("").removeClass('placeholder');}})   
	      .blur(function(){if(that.val()===""){that.val(text).addClass('placeholder');}})   
	      .closest('form').submit(function(){   
	        if(that.val() === text){that.val('');}});});   
	}
	$(".weui-btn").click(function(){
        $(".js_dialog").hide();
	});

	function getByteLen(val) {
        var len = 0;
        for (var i = 0; i < val.length; i++) {
            var a = val.charAt(i);
            if (a.match(/[^\x00-\xff]/ig) != null) {//\x00-\xff→GBK双字节编码范围
                len += 2;
            }
            else {
                len += 1;
            }
        }
        return len;
    }
	
	function _popMsg(msg){
		$(".weui-msg").html(msg);
        $(".js_dialog").show();
	}

	$('.tktxt').bind('input propertychange', function() {
        var $this = $(this);
        var text_length = getByteLen($this.val());//获取当前文本框的长度
        if(sWidth > 720){
        	var current_width = parseInt(text_length/2) *18;
        	current_width=current_width+18;
        }else{
        	var current_width = parseInt(text_length/2) *12;
        	current_width=current_width+12;
        }
        if(current_width > _rate*60){
        	$this.css("width",current_width+"px");
        }
    });


	
    
});
</script>
</body>
</html>